import wx

class MainFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self,None)
        self.menubar = wx.MenuBar()
        self.file = wx.Menu()
        self.file.Append(wx.ID_ANY,'&Test')
        self.menubar.Append(self.file,'File')
        self.SetMenuBar(self.menubar)
        self.Show()

app = wx.App(False)
frame = MainFrame()
app.MainLoop()